<template>
<div>
  <v-btn @click="doLogin">登录</v-btn>
</div>
</template>

<script setup>
import {ref, computed, watch, onMounted} from 'vue'
import {useRoute, useRouter} from "vue-router";

const route = useRoute();
const router = useRouter();

import { useUserStore } from '@/stores/userStore';
const  userStore = useUserStore();
const userInfo = ref();
function doLogin(){
  const loginUserInfo = {"userId":"122234","nickName":"haichen","avatarUrl":"https://thirdwx.qlogo.cn/mmopen/vi_32/Eg6CqdMOzTE9TpOuoIFxxnwOmjVXu3n6iaVmibU0nraT7kSlCCDlShbicubp4koqo3KE7nKibLaq9SJ8ImhTHianuww/132"};
  userStore.userInfo = loginUserInfo;
}
</script>

<style scoped>

</style>